import React, { Component } from 'react';
import {
    StyleSheet,
    View,
    Text,
    Image,
} from 'react-native';
import FetchNetDataComponent from "../myComponent/FetchNetDataComponent";
import MyNav from "../extendsComponent/MyNav";
export default class NewsComponent extends Component {
    static navigationOptions = {
        // headerTitle: '新闻',
        tabBarLabel: '新闻',
        tabBarIcon: <Image style={{width:20,height:20}} source={require("../res/find_default.png")} />,
    };
    render() {
        return (
            <View style={styles.container}>
                <MyNav
                    title={"新闻"}
                    color={"#1aa1e5"}
                    textColor={"white"}
                />
                <FetchNetDataComponent navigate={this.props.navigation.navigate}/>
            </View>
        );
    }
}

const styles = StyleSheet.create({
    container: {
        flex: 1,
        backgroundColor: '#F5FCFF',
    },
});
